<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加信息</title>
</head>
<body>
    <section class="content" id="showcontent">
        <div >
            <div>
                <div>
                    <div>
                        <h3>添加配置</h3>
                    </div>

                {% for message in get_flashed_messages() %}
                    {{ message }}
                {% endfor %}

                    <form role="form" method="post">
                        <div class="box-body">
                            {% for msg in get_flashed_messages(category_filter=["ok"]) %}
                                <div>

                                    <h4><i class="icon fa fa-check"></i> 操作成功</h4>
                                    {{ msg }}
                                </div>
                            {% endfor %}
                            <div>
                                <label for="input_code">{{ form.code.label }}</label>
                                {{ form.code }}
                                {% for err in form.code.errors %}
                                    <div>
                                        <font style="color:red">{{ err }}</font>
                                    </div>
                                {% endfor %}
                            </div>
                            <div>
                                <label for="input_short">{{ form.short.label }}</label>
                                {{ form.short }}
                                {% for err in form.short.errors %}
                                    <div>
                                        <font style="color:red">{{ err }}</font>
                                    </div>
                                {% endfor %}
                            </div>
                            <div>
                                <label for="input_chg">{{ form.chg.label }}</label>
                                {{ form.chg }}
                                {% for err in form.chg.errors %}
                                    <div>
                                        <font style="color:red">{{ err }}</font>
                                    </div>
                                {% endfor %}
                            </div>
                            <div>
                                <label for="input_turnover">{{ form.turnover.label }}</label>
                                {{ form.turnover }}
                                {% for err in form.turnover.errors %}
                                    <div>
                                        <font style="color:red">{{ err }}</font>
                                    </div>
                                {% endfor %}
                            </div>
                            <div>
                                <label for="input_price">{{ form.price.label }}</label>
                                {{ form.price }}
                                {% for err in form.price.errors %}
                                    <div>
                                        <font style="color:red">{{ err }}</font>
                                    </div>
                                {% endfor %}
                            </div>
                            <div>
                                <label for="input_highs">{{ form.highs.label }}</label>
                                {{ form.highs }}
                                {% for err in form.highs.errors %}
                                    <div>
                                        <font style="color:red">{{ err }}</font>
                                    </div>
                                {% endfor %}
                            </div>
                        </div>
                        <div>
                            {{ form.csrf_token }}
                            {{ form.submit }}
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
</body>
</html>